<!DOCTYPE html>
<html>
    <head>
        <script src="js/vue.js"></script>
    </head>
    <body>
        <div id="app">
            <p> {{msg}} </p>
            <button @click="showInfo">请单击</button>
        </div>
        <script>
            var vm = new Vue({
                el:'#app',
                data : {
                    msg : '请单击按钮查看内容!'
                },
                methods:{
                    showInfo(){
                        this.msg = '我是v-on指令';
                    }
                }
            });
        </script>
    </body>
</html>